<?php

namespace App\Models\TextbookAudio;

use Illuminate\Database\Eloquent\Model;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Relations;
use App\Models\Category\Category;

class TextbookAudio extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'textbook_audios';
    protected $fillable = [
        'id', 'category_id', 'unit_name', 'title', 'original_singer',
        'vocal_accompaniment', 'captions', 'video', 'duration'
    ];

    public function category(): Relations\BelongsTo
    {
        return $this->belongsTo(Category::class);
    }
}
